/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.kamionowski.supreme.root;

import org.springframework.mobile.device.Device;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author soldier
 */
@Controller
public class RootController {

    @RequestMapping(method=RequestMethod.GET, value="/")
    public ModelAndView root(Device device){
        return new ModelAndView("index", "device", device);
    }
}
